#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include <QTcpSocket>
#include <QtWebView>
#include <QQuickItem>
#include <QQmlContext>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    unsigned char controll_data[8];
    QTimer *sendTimer;
    QTcpSocket *tcpClient;
    QQuickItem *qmlObject;

public slots:
    void send_data();
    void receive_data();
    void tcp_disconnect();

private slots:
    void on_Connect_clicked();

    void on_LED_clicked();

    void on_Buzzer_pressed();

    void on_Buzzer_released();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
